package ru.autofan.action;

import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;

import ru.autofan.form.RegistrationForm;
import ru.autofan.logic.RegistrationRequestService;

public class RegistrationAction extends AbstractAction {

	public Event register(RequestContext context) throws Exception {
		RegistrationForm form = (RegistrationForm) getFormObject(context);
        getService(RegistrationRequestService.class).create(form);
		return success();
	}
	
}
